$(document).ready(function () {

    $(".books").load("http://localhost:8080/bookcartcard?cartId=0");



    $(".loginout").on('click',function () {
        $(".loginout").attr("href","http://localhost:8080/loginout")
    });


    $(".cartcardbtn").on('click',function () {
        var cartId=$(this).attr("data-id");

        $(".books").load("http://localhost:8080/bookcartcard?cartId="+cartId)

    });

    $(".btn").on('click',function () {
        var input=$(".searchbox").val().trim();
        $(".books").load("http://localhost:8080/bookfirstsearch?input="+input)
    });
});

